package com.space.components.token;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @date 2021/5/14 7:15 下午
 */
@Configuration
@EnableAspectJAutoProxy
public class TokenAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(TokenAspect.class)
    public TokenAspect tokenAspect() {
        return new TokenAspect();
    }
}
